<template>
	<view class="content">
		<view class="header">
			<view class="header_bg">
				<view class="search">
					<image src="../../../static/home/search.png" mode=""></image>
					<input type="text" value="" placeholder="搜素" />
				</view>
			</view>

			<view class="list">
				<view class="list1">
					<button type="default">职称部门管理</button>
				</view>
				<view class="list2">
					<button type="default">新增老师</button>
				</view>
				<view class="list3">
					<button type="default">二维码入校</button>
				</view>
			</view>


			<view class="listone" v-for="(item,index) in departmentlist">
				<view class="listone1">
					<text>{{item.title}}</text>
					<image src="../../../static/school/zs.png" mode="" @click="xl(item)"></image>
				</view>
				<view class="listonezs" v-show="item.state">
					<view class="listonezs1">
						<text>A老师 职称 联系方式</text>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				departmentlist: [{
						id: 0,
						title: '教学部',
						state: false,
						list: [{
								id: 0,
								title: 'A老师 职称 联系方式'
							},
							{
								id: 0,
								title: 'A老师 职称 联系方式'
							},
							{
								id: 0,
								title: 'A老师 职称 联系方式'
							}
						]
					},
					{
						id: 1,
						title: '教学部',
						state: false,
						list: [{
								id: 0,
								title: 'A老师 职称 联系方式'
							},
							{
								id: 0,
								title: 'A老师 职称 联系方式'
							}
						]
					}
				]
			}
		},
		methods: {
			xl(item){
				item.state=! item.state
			}
		}
	}
</script>

<style>
	.content {
		width: 750rpx;
		height: 100vh;
		background: #FAFAFA;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header {
		width: 750rpx;
		height: 240rpx;
		background: linear-gradient(180deg, #1789FF 0%, #93C3F9 100%);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header_bg {
		padding-top: 40rpx;
	}

	.search {
		width: 690rpx;
		height: 88rpx;
		background: #FFFFFF;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		display: flex;
		align-items: center;
		margin: auto;
	}

	.search image {
		width: 34rpx;
		height: 34rpx;
		margin-left: 28rpx;
	}

	.search input {
		margin-left: 30rpx;
	}

	.list {
		width: 690rpx;
		height: 108rpx;
		background: #FFFFFF;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		margin: 40rpx auto 40rpx;
		display: flex;
		align-items: center;

	}

	.list1 button {
		width: 216rpx;
		height: 64rpx;
		background: #1D8CFF;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 26rpx;
		color: #FFFFFF;
		margin-left: 24rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.list2 button {
		width: 184rpx;
		height: 64rpx;
		background: #4461D9;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 26rpx;
		color: #FFFFFF;
		margin-left: 16rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.list3 button {
		width: 216rpx;
		height: 64rpx;
		background: #4DC9FF;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 26rpx;
		color: #FFFFFF;
		margin-left: 16rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.listone {


		margin: 0 auto 40rpx;
	}

	.listone1 {
		width: 690rpx;
		height: 116rpx;
		background: #FFFFFF;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		display: flex;
		align-items: center;
		margin: 0 auto 40rpx;
	}

	.listone1 text {

		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		margin-left: 32rpx;
	}

	.listone1 image {
		width: 40rpx;
		height: 40rpx;
		margin-left: auto;
		margin-right: 32rpx;
	}

	.listonezs {
		width: 690rpx;
		height: 264rpx;
		background: #FFFFFF;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		border: 2rpx solid #6DB5FF;
		
		margin: 32rpx auto 40rpx;
	}

	.listonezs1 {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #666666;
		margin-left: 32rpx;
		margin-right: 32rpx;
		padding-top: 32rpx;
		padding-bottom: 16rpx;
		border-bottom: 2px solid #F0F0F0;

	}
</style>